package com.amat0urheu.dao;


import com.amat0urheu.pojo.CloudPojo.Flavor;
import com.amat0urheu.pojo.CloudPojo.NetWork;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface FlavorMapper {

    @Select("select * from mc_flavor ")
    List<Flavor> getFlavors();
    @Insert("INSERT INTO mc_flavor (name, Vcpus,Ram,Dis) VALUES (#{flavor.name}, #{flavor.Vcpus},#{flavor.Ram},#{flavor.Dis})")
    int insertFlavors(@Param("flavor") Flavor Flavor);
   @Delete("delete  from mc_flavor ")
   int dropFlavors();

    @Delete("delete  from mc_flavor where name=#{flavorName}")
    int deleteFlavorId(String flavorName);



    @Select("select name from mc_flavor ")
    List<Flavor> getAllFlavorsName();
}
